package com.huadao.cart_ccs.main.login;

import com.huadao.cart_ccs.base.BaseHttpPresenter;
import com.huadao.cart_ccs.base.BaseView;
import com.huadao.cart_ccs.data.bean.DeviceInfo;
import com.huadao.cart_ccs.greendao.entity.Project;

public interface LoginContract {

    interface ILoginView extends BaseView {
        void onLoginResult();
        void onCheckLastProject(Project project);
        void createDeviceResult(DeviceInfo deviceInfo);
        void onQueryProjectResult(com.huadao.cart_ccs.data.bean.Project project);
    }

    abstract class ILoginPresenter extends BaseHttpPresenter<ILoginView> {
        abstract void createDevice();
        abstract void login();
        public abstract void queryProject(String devId);
        public abstract String getLoginCode();
    }
}
